package com.hyacinth.activity;

import com.hyacinth.activity.repository.CustomerJpaRepositoryFactoryBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@EnableTransactionManagement //开启事务配置
@EnableJpaRepositories(basePackages = {"com.hyacinth.activity.repository"}, repositoryFactoryBeanClass = CustomerJpaRepositoryFactoryBean.class) // 指定jpaRepositories位置
public class ActivityApplication {

    public static void main(String[] args) {
        log.info("系统启动START...");
        SpringApplication.run(ActivityApplication.class, args);
        log.info("系统启动END...");
    }
}
